﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace Mads.CoreDomain
{
  /// <summary>
  /// Represents train station.
  /// </summary>
  [DataContract]
  public class Station : VersionedKeyAbstraction
  {
    /// <summary>
    /// Name of the station.
    /// </summary>
    [DataMember]
    public string Name { get; set; }

    public Station(string name)
      : base()
    {
      if (String.IsNullOrEmpty(name))
      {
        throw new ArgumentException("name");
      }

      Name = name;
    }
    public Station(uint id, string name)
      : this(name)
    {
      ID = id;
    }
  }
}